<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function changeH1(){
				var h=document.getElementById("t1");
				h.align="right";
			}
			function changeImg(){
				var ar=document.getElementsByTagName("img");
				//alert(ar);
				//alert(ar.length);
				for(var i in ar){
					ar[i].height=100;
					ar[i].width=200;
				}
			}
			function writeDoc(){
				document.write("明天画三个网页");
			}
		</script> 
	</head>
	<body>
		<h1 id="t1">教育改变不了人性</h1>
		<img src="../img/jixue.jpg" />
		<img src="../img/tou02.jpg" />
		<img src="../img/focus.jpg" />
		<input type="button" value="改变" onclick="changeH1()"/>
		
		<input type="button" value="改变图片大小" onclick="changeImg()"/>
		
		<input type="button" value="写内容" onclick="writeDoc()"/>
		
	</body>
</html>
